<template>
    <el-button :type="type" v-if="!loading">
        <slot></slot>
    </el-button>
    <el-button disabled v-else>
        <MyLoading/>
    </el-button>
</template>

<script setup>
import MyLoading from '@/components/loading/index.vue'
const props = defineProps({
    type: String,
    loading: Boolean
})
</script>

<style lang="scss">
</style>